Snell's Law Math Problem